
Pod::Spec.new do |s|

  s.name         = "SWCordovaKit"
  s.version          = '0.1.2'
  s.summary      = "SWCordovaKit is a kind of modular programming method"

  s.description  = <<-DESC
                      nothing
                    DESC

  s.homepage     = "https://gitlab.geely.com/"

  s.license      = "GPL"

  s.platform = :ios, '9.0'
  
  s.author       = { "geely" => "geely@geely.com" }
  s.static_framework = true
  
#  if ENV['mode'].to_s.include? "lib"
  puts "SWCordovaKit成果物模式集成".blue
  s.source = { :http => 'https://geely-admp-oss.oss-cn-hangzhou.aliyuncs.com/sweet-app-release/ios/SWCordovaKit.framework-0.1.2.zip' }
  s.ios.vendored_framework   = 'SWCordovaKit.framework'
  s.resources = ['SWCordovaKit.framework/Versions/A/Resources/*.{gif,jpg,png,mp3,mp4,lproj,plist,json,xib,storyboard,xml}']
#  else
#  s.source           = { :git => 'https://devops.geely.com/Products/AGP/_git/sweet-ios-cordova-kit', :tag => s.version.to_s }
#  s.source_files = 'SWCordovaKit/Classes/**/*.{h,m}'
#  s.public_header_files  = 'SWCordovaKit/Classes/**/*.h'
#  s.resources = ['SWCordovaKit/Assets/**/*.{gif,jpg,png,mp3,mp4,lproj,plist,json,xib,storyboard,xml}']
#  end
  s.frameworks = 'QuartzCore','UIKit','WebKit','CoreServices'

  s.dependency 'SWFramework'
  s.dependency 'SWUIKit'
  
  s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
  s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
end
